#!/usr/bin/env node

const me = {},
  
      stdout=process.stdout,
      log=console.log,
      stdin=process.stdin,
      msg=['name','email','qq','mobile'];

let i = 0;

stdout.write(msg[i] + ':');
stdin.on('data',data=>{
  me[msg[i++]]=data.toString('utf8');
  stdout.write(msg[i]+':');
});
stdin.on('end',()=>{
  log('bye');
});
